package alp.starcode.nudtportal.framework.constant;

public enum PayModelEnum {
    WECHAT("weChat", "9", "9"), ALIPAY("alipay", "10", "8");

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    String type;

    public String getModel() {
        return model;
    }

    public void setModel(String model) {
        this.model = model;
    }

    String model;

    public String getAccessType() {
        return accessType;
    }

    public void setAccessType(String accessType) {
        this.accessType = accessType;
    }

    String accessType;

    PayModelEnum(String type, String model, String accessType) {
        this.type = type;
        this.model = model;
        this.accessType = accessType;
    }

    public static String getModelByType(String type) {
        PayModelEnum[] payModelEnums = values();
        PayModelEnum[] var6 = payModelEnums;
        int var5 = payModelEnums.length;
        for (int var4 = 0; var4 < var5; ++var4) {
            PayModelEnum payModelEnum = var6[var4];
            if (type.equals(payModelEnum.type)) {
                return payModelEnum.model;
            }
        }
        return null;
    }

    public static String getAccessTypeByType(String type) {
        PayModelEnum[] payModelEnums = values();
        PayModelEnum[] var6 = payModelEnums;
        int var5 = payModelEnums.length;
        for (int var4 = 0; var4 < var5; ++var4) {
            PayModelEnum payModelEnum = var6[var4];
            if (type.equals(payModelEnum.type)) {
                return payModelEnum.accessType;
            }
        }
        return null;
    }
}
